<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        .p1{
            float: right;
        }
       
    </style>
</head>
<body>
    <p class="p1">段落1</p>
    <p>段落2</p>
    <div>
        <span>文本1</span>
        <span>文本2</span>
    </div>
</body>
</html>